function main(item) {
  let url = item.url;
  let id = ku9.getQuery(url, "id") || "11342412";
  let jsonUrl = 'https://www.huya.com/' + id;
  let headers = {
    'Content-Type': 'application/x-www-form-urlencoded',
    'Referer': 'https://mp.huya.com',
    'Origin': 'https://www.huya.com',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0'    
  };     
  let data = ku9.get(jsonUrl, JSON.stringify(headers)); 
var regex = /"sStreamName":"([^"]+)".*?"sFlvUrl":"([^"]+)".*?"sFlvUrlSuffix":"([^"]+)".*?"sFlvAntiCode":"([^"]+)"/s;
var matches = data.match(regex);
var sStreamName = matches[1];
var sFlvUrl = "http://182.40.120.171/test-txdwk.flv.huya.com/src";
var sFlvUrlSuffix = matches[3];
var sFlvAntiCode = matches[4];
var m3u8url = sFlvUrl + '/' + sStreamName + '.' + sFlvUrlSuffix + '?' + sFlvAntiCode;
    return JSON.stringify({ url: m3u8url }); 
  }
